package com.zebra.remoting.protocol;

import java.io.Serializable;

/**
 * Remoting command.
 * request extends RemotingCommand
 * 交互消息体 比如 request response 需要继承
 * @author sk
 */
public interface RemotingCommand extends Serializable {

    /**
     * Get the command processorType for this command
     * @return command code
     */
    ProcessorType getProcessorType();

    PoolType getPoolType();

    CommandType getCommandType();

    /**
     * Get the command code for this command
     * @return an int value represent the command id
     */
    int cmd();

    int requestId();

    int addRequestId(int id);




}
